package com.ruoyi.exam.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 题库对象 t_question
 * 
 * @author Bandit
 * @date 2022-11-01
 */
public class TQuestion extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 题目id */
    private Long id;

    /** 类型1.单选 2.多选 3.判断 4.填空 5.简答 */
    @Excel(name = "类型1.单选 2.多选 3.判断 4.填空 5.简答")
    private Long questionType;

    /** 题目分值 */
    @Excel(name = "题目分值")
    private Long score;

    /** 正确答案 */
    @Excel(name = "正确答案")
    private String correct;

    /** 题目 填空、 题干、解析、答案等信息的id */
    @Excel(name = "题目 填空、 题干、解析、答案等信息的id")
    private Long contentId;

    /** 创建人id */
    @Excel(name = "创建人id")
    private Long createdBy;

    /** 状态1正常,0禁用 */
    @Excel(name = "状态1正常,0禁用")
    private Long status;

    /** 删除标志 */
    @Excel(name = "删除标志")
    private Long deleteFlag;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setQuestionType(Long questionType) 
    {
        this.questionType = questionType;
    }

    public Long getQuestionType() 
    {
        return questionType;
    }
    public void setScore(Long score) 
    {
        this.score = score;
    }

    public Long getScore() 
    {
        return score;
    }
    public void setCorrect(String correct) 
    {
        this.correct = correct;
    }

    public String getCorrect() 
    {
        return correct;
    }
    public void setContentId(Long contentId) 
    {
        this.contentId = contentId;
    }

    public Long getContentId() 
    {
        return contentId;
    }
    public void setCreatedBy(Long createdBy) 
    {
        this.createdBy = createdBy;
    }

    public Long getCreatedBy() 
    {
        return createdBy;
    }
    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }
    public void setDeleteFlag(Long deleteFlag) 
    {
        this.deleteFlag = deleteFlag;
    }

    public Long getDeleteFlag() 
    {
        return deleteFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("questionType", getQuestionType())
            .append("score", getScore())
            .append("correct", getCorrect())
            .append("contentId", getContentId())
            .append("createdBy", getCreatedBy())
            .append("status", getStatus())
            .append("deleteFlag", getDeleteFlag())
            .toString();
    }
}
